package helpers.baseservlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

import org.springframework.web.context.support.WebApplicationContextUtils;

@SuppressWarnings("serial")
@WebServlet(loadOnStartup = 1)
public class BaseServlet extends HttpServlet {
	@Override
	public void init() {
		WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()).
		getAutowireCapableBeanFactory()
				.autowireBean(this);

	}
}
